package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialControllerApi {

    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);
    public ResponseResult findList( WmMaterialDto dto);
    public ResponseResult delPicture(Integer id);
    /**
     * 取消收藏
     * @param id
     * @return
     */
    @ApiOperation("取消收藏")
    ResponseResult cancelCollectionMaterial(Integer id);

    /**
     * 收藏图片
     * @param id
     * @return
     */
    @ApiOperation("收藏图片")
    ResponseResult collectionMaterial(Integer id);

}